package com.quwan.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.quwan.constans.AppConst;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Transient;

/**
 * @author quan
 * @date 2021-07-23 17:31
 */


@Data
@Accessors(chain = true)
@TableName(value = "t_member_dynamic")
public class TMemberDynamic {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "m_id")
    private Long mId;

    @TableField(value = "title")
    private String title;

    @ApiModelProperty("点赞数量")
    @TableField(value = "follow")
    private Integer follow;

    @ApiModelProperty("评论数量")
    @TableField(value = "comment")
    private Integer comment;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "topic")
    private String topic;

    @JsonFormat(pattern = AppConst.DATE_SHOW_FORMAT)
    @TableField(value = "add_time")
    private Date addTime;




}